//
//  NSString+Crypt.h
//  HSCategoryKit
//
//  Created by huang on 2018/8/1.
//

#import <Foundation/Foundation.h>

@interface NSString (Crypt)

/**
 aes256加密
 
 @param key key
 @return NSString
 */
- (NSString *)aes256_encrypt:(NSString *)key;

/**
 aes256解密
 
 @param key key
 @return NSString
 */
- (NSString *)aes256_decrypt:(NSString *)key;

/**
 md5加密
 
 @return NSString 默认小写
 */
- (NSString *)md5Encrypt;

/**
 *  转换成SHA1
 *
 *  @return NSString 默认小写
 */
- (NSString *)sha1Encode;

@end
